
package org.team751;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import org.team751.commands.ForkliftTargetBottom;
import org.team751.commands.ForkliftTargetTop;

public class OI {
    // Process operator interface input here.
    
    private Joystick leftStick, rightStick, forkliftGripperStick;
    
    private DigitalIOButton bottomForkliftHeight, topForkliftHeight;
    
    private JoystickButton gripperEjectButton;
    
    public OI(){
        leftStick = new Joystick(1);
        rightStick = new Joystick(2);
        forkliftGripperStick = new Joystick(3);
        
        bottomForkliftHeight = new DigitalIOButton(3);
        bottomForkliftHeight.whenPressed(new ForkliftTargetBottom());
        topForkliftHeight = new DigitalIOButton(4);
        topForkliftHeight.whenPressed(new ForkliftTargetTop());
        
        gripperEjectButton = new JoystickButton(forkliftGripperStick, 3);
    }

    /**
     * Get the reference to the left joystick
     * @return the joystick
     */
    public Joystick getLeftStick() {
        return leftStick;
    }
    /**
     * Get the reference to the right joystick
     * @return the joystick
     */
    public Joystick getRightStick() {
        return rightStick;
    }
    /**
     * Get the reference to the joystick used for the forklift & gripper
     * @return the joystick
     */
    public Joystick getForkliftGripperStick() {
        return forkliftGripperStick;
    }
}

